package com.undsf.kanmu.kcsapi.controllers

import com.undsf.kanmu.kcsapi.messages.BaseMessage
import com.undsf.kanmu.kcsapi.messages.Port
import org.springframework.web.bind.annotation.RequestMapping

/**
 * Created by Arathi on 2017/8/24.
 */
class PortController {
    var chinnjyufuSvc: Any? = null
    var portSvc: Any? = null

    @RequestMapping("api_port/port")
    fun port(): BaseMessage<Port> {
        val material: Port.Material? = null  // Port.Material(memberId, )
        val deck_port: Any? = null
        val ndock: Any? = null
        val ships: List<Port.Ship> = listOf()
        val basic: Port.Basic? = null
        val logs: List<Port.Log> = listOf()
        val combined_flag: Int = 0
        val bgm_id: Int = 0
        val event: Any? = null
        val parallel_quest_count: Int = 4
        val plane_info: Any? = null

        var data: Port = Port(
                material!!,
                deck_port!!,
                ndock!!,
                ships,
                basic!!,
                logs,
                combined_flag,
                bgm_id,
                event!!,
                parallel_quest_count,
                plane_info!!
        )
        var message: BaseMessage<Port> = BaseMessage<Port>(0, "成功")
        message.data = data
        return message
    }
}